-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support JSONPath #237
Support JSONPath #237
Conversation
Codecov Report
@@ Coverage Diff @@
## master #237 +/- ##
===========================================
- Coverage 100.00% 99.38% -0.62%
===========================================
Files 5 5
Lines 290 327 +37
Branches 59 72 +13
===========================================
+ Hits 290 325 +35
- Misses 0 1 +1
- Partials 0 1 +1
Continue to review full report at Codecov.
|
I have included jsonpath_ng in setup.py but flake8 is throwing an error saying that jsonpath_ng not found. How do I resolve it? |
The flake errors, if you look at lines 71-74 of the CI output, is:
I suggest you run |
After reformatting docs/conf.py using black, flake8 is failing with line too long error, I was not able to catch this error while running tox locally, as flake8 fails with the following error ERROR - ModuleNotFoundError: No module named 'jsonpath_ng'. |
I believe you need to run black setting the line limit to 79 to comply with flake8:
We probably did not hit this issue in the rest of the code by pure luck, but we need to edit tox.ini to specify that length as well, otherwise later executions of black will break the length again. As for the module error when running tox, since it works in CI, my guess is that you need to recreate your Tox environment, i.e. include |
Support for JSONPath has been added with the jsonpath-ng library. Most of the implementation is based on #181 which adds support for json using the JMESPath library.
closes #204